package com.personal.book.dao;

import java.util.List;

import com.personal.book.entity.BookType;
import com.personal.tools.PageData;

public interface BookTypeDao {
	
	//添加图书类别
	public boolean Add(BookType booktype);
	
	//根据图书名精准查询
	public BookType getBookTypeByName(String typeName);
	
	//根据类型编号精准查询
	public BookType getBookTypeById(int typeId);
	
	//修改图书类别信息
	public boolean Update(BookType booktype);
	
	//根据图书类别名关键词模糊查询
	public PageData<BookType> getBookTypeByKeyWord(int page,int pageSize,String keyword);
	
	public List<BookType> getBookTypeInfo();
	
	//删除图书类别
	public boolean Del(int typeId);
	
	

}
